package com.neusoft.liduan.d0922;

public class RunnableFirst implements Runnable {
	private int n;

	public RunnableFirst(int n) {
		this.n = n;
	}
	
	public void setN(int n) {
		this.n = n;
	}

	@Override
	public void run() {
		for (int i = 0; i < 100; i++) {
			if (i % 2 == n) {
				System.out.println(Thread.currentThread() + ":::" + i);
			}
		}
	}

}
